/*-------------------------------------------------------------------------

***************** Modification History ***********************************
   @doc
   @module gdtrt.h - Transaction Requirement Table gendata header file |
   @end
   
$Log: /SoftPay/SPK2SIM/Source/Config/gdtrt.h $ 
 * 

**************************************************************************

   Copyright (C) 1999 by VeriFone, Inc.

   All rights reserved.  No part of this software may be reproduced,
   transmitted, transcribed, stored in a retrieval system, or translated
   into any language or computer language, in any form or by any means,
   electronic, mechanical, magnetic, optical, chemical, manual or otherwise,
   without the prior written permission of VeriFone, Inc.

---------------------------------------------------------------------------*/
#ifndef TRT_H
#define TRT_H


/* Transaction types */

#define ADMIN_TRAN             -1
#define CREDIT_TRAN             0
#define DEBIT_TRAN              1
#define ADJUST_CREDIT_TRAN      2
#define ADJUST_DEBIT_TRAN       3
#define AUTH_CREDIT_TRAN        4
#define AUTH_DEBIT_TRAN         5

/* Card Data Entry Types */
#define   READ_CARD_NONE        0
#define   READ_CARD_MANUAL      1
#define   READ_CARD_SWIPED      2
#define   READ_CARD_EITHER      3
#define READ_CARD_BOTH          4

#define MAX_FIELDS              60
  
/* Host 0 */

#define HOST0_FUNC1                 0x0501


/* Banning Card Types */
#define TRT_CREDIT_CARD            0x0001
#define TRT_DEBIT_CARD             0x0002
#define TRT_PURCHASE_CARD          0x0004
#define TRT_ADMIN_CARD             0x0008
#define TRT_NON_CARD               0x0010
#define TRT_EBT_CARD               0x0020
#define TRT_LOYALTY_CARD           0x0040
#define TRT_LOYCREDIT_CARD         0x0080
#define TRT_FLEET_CARD		       0x0100
#define TRT_EMV_CARD               0x0200
#define TRT_GIFT_CARD              0x0400
#define TRT_COMMERCIAL_CARD        0x0800

#define TRT_FINANCIAL_CARDS		   0x0127
#define TRT_LOYALTY_CARDS		   0x00C0
#define TRT_DEBIT_EBT_CARD         0x0022
#define TRT_DEBIT_EBT_PURCH_CARD   0x0026
#define TRT_NON_EBT_CARDS          0x01DF

define TRT BIN
{
   (short,  TransactionCode,              "")     /* Field 1      */   
   (short,  TranType,                     "")     /* Field 2      */
   (short,  CardMode,                     "")     /* Field 3      */
   (char, TranAbbrev[TRT_ABBREV_SIZE],  "")     /* Field 4      */
   (short,  BannedCardTypes,              "")     /* Field 5      */
   (short,  TipProc,						"")     /* Field 6      */
   
   (bit,  fDataCapture,                 "")     /* Field 7      */
   (bit,  fOverage,                     "")     /* Field 8      */
   (bit,  fReversal,                    "")     /* Field 9      */
   (bit,  fCheckFloorLimit,             "")     /* Field 10      */
   (bit,  fNotused1,                    "")     /* Field 11     */
   (bit,  fAllowed,                     "")     /* Field 12     */
   (bit,  fAdjustAllowed,               "")     /* Field 13     */
   (bit,  fVoidAllowed,                 "")     /* Field 14     */
   (bit,  fPrintReceipt,                "")     /* Field 15     */
   (bit,  fAdjustReceipt,               "")     /* Field 16     */
   (bit,  fVoidReceipt,                 "")     /* Field 17     */
   (bit,  fOffline,                     "")     /* Field 18     */
   (bit,  fAdjustOffline,               "")     /* Field 19     */
   (bit,  fVoidOffline,                 "")     /* Field 20     */
   (bit,  fIncInvNum,                   "")     /* Field 21     */
   (bit,  fAdjustIncInvNum,             "")     /* Field 22     */

   (bit,  f1,                           "")     /* Padded Field */
   (bit,  f2,                           "")     /* Padded Field */
   (bit,  f3,                           "")     /* Padded Field */
   (bit,  f4,                           "")     /* Padded Field */
   (bit,  f5,                           "")     /* Padded Field */
   (bit,  f6,                           "")     /* Padded Field */
   (bit,  f7,                           "")     /* Padded Field */
   (bit,  f8,                           "")     /* Padded Field */
   (bit,  fVoidIncInvNum,               "")     /* Field 23     */
   (bit,  fIncHostInvNum,               "")     /* Field 24     */
   (bit,  fAdjustIncHostInvNum,         "")     /* Field 25     */
   (bit,  fVoidIncHostInvNum,           "")     /* Field 26     */
   (bit,  fRetryPrompt,            		"")     /* Field 27     */
   (bit,  fNotUsed4,       				"")     /* Field 28     */
   (bit,  fNotUsed3,         			"")     /* Field 29     */
   (bit,  fNotUsed2,                    "")     /* Field 30     */

  
   (short  ,shFieldFuncPtr[MAX_FIELDS],   "")     /* Field 31     */
}

#endif
